﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ibook.master" AutoEventWireup="true" CodeFile="inquiry.aspx.cs" Inherits="Customer_inquiry" %>

<%@ Register TagPrefix="wen" TagName="show" Src="~/ascx/show.ascx" %>
<%@ Register TagPrefix="inqu" TagName="inquiry" Src="~/ascx/inquiry.ascx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<%--<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderNavigation" Runat="Server">
</asp:Content>--%>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolderBody" Runat="Server">
  <div>
        <table width="100%">
            <tr>
                <td align="left">
                    <asp:Label ID="Label7" runat="server" ForeColor="Red" Style="font-weight: bold" Text="当前用户是："></asp:Label>
                    <asp:Label ID="Label9" runat="server" ForeColor="Red" Height="20px" Style="font-weight: bold"
                        Width="100px"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="center">    
                    <asp:Label ID="Label10" runat="server" Font-Bold="True" Font-Names="隶书" Font-Size="X-Large"
                        ForeColor="Red" Text="图书信息浏览表"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="center">
                    <asp:DataList ID="DataList1" runat="server" BackColor="#DEBA84" BorderColor="#DEBA84"
                        BorderStyle="None" BorderWidth="1px" CellPadding="4" CellSpacing="2" GridLines="Both"
                        DataKeyField="bookId" Width="100%" OnItemCommand="DataList1_ItemCommand" 
                        OnSelectedIndexChanged="DataList1_SelectedIndexChanged" RepeatColumns="1">
                        <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
                        <SelectedItemStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
                        <ItemStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
                        <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
                        <ItemTemplate>
                             <table width="100%">
                               
                                <tr>
                                    <td align="left" rowspan="5">
                                        <asp:Image ID="Image1" runat="server" Height="300px" ImageUrl='<%#DataBinder.Eval(Container.DataItem,"smallImg")%>' />
                                    </td>
                                    <td align="left">
                                        <asp:Label ID="Label2" runat="server" Font-Bold="True" Font-Names="隶书" ForeColor="Red"
                                            Text="书名："></asp:Label>
                                    </td>
                                    <td align="left">
                                        <asp:Label ID="Label5" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"bookName")%>'></asp:Label>
                                    </td>
                                    <td align="left">
                                        <asp:Label ID="Label3" runat="server" Font-Bold="True" Font-Names="隶书" ForeColor="Red"
                                            Text="出版社："></asp:Label>
                                    </td>
                                    <td align="left">
                                        <asp:Label ID="Label6" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"publisher") %>'></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="left">
                                        <asp:Label ID="Label4" runat="server" Font-Bold="True" Font-Names="隶书" ForeColor="Red"
                                            Text="单价："></asp:Label>
                                    </td>
                                    <td align="left">
                                        <asp:Label ID="Label8" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"marketPrice")%>'></asp:Label>
                                    </td>
                                    <td align="left" >
                                        <asp:Label ID="Label7" runat="server" Font-Bold="True" Font-Names="隶书" ForeColor="Red"
                                            Text="作者："></asp:Label></td>
                                    <td align="left" >
                                        <asp:Label ID="Label9" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"author")%>'></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="left">
                                        <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Names="隶书" ForeColor="Red"
                                            Text="折扣："></asp:Label>
                                    </td>
                                    <td align="left">
                                        <asp:Label ID="Label11" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"publicDiscount")%>'></asp:Label>
                                    </td>
                                    <td align="left" >
                                        <asp:Label ID="Label12" runat="server" Font-Bold="True" Font-Names="隶书" ForeColor="Red"
                                            Text="库存量："></asp:Label></td>
                                    <td align="left" >
                                        <asp:Label ID="Label13" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"inventory")%>'></asp:Label>
                                    </td>
                                
                                </tr>
                                <tr>
                                    <td align="left">
                                        <asp:Label ID="Label14" runat="server" Font-Bold="True" Font-Names="隶书" ForeColor="Red"
                                            Text="点击率："></asp:Label>
                                    </td>
                                    <td align="left">
                                        <asp:Label ID="Label15" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"hitNum")%>'></asp:Label>
                                    </td>
                                    <td align="left" >
                                        <asp:Label ID="Label16" runat="server" Font-Bold="True" Font-Names="隶书" ForeColor="Red"
                                            Text="购买量："></asp:Label></td>
                                    <td align="left" >
                                        <asp:Label ID="Label17" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"buyNum")%>'></asp:Label>
                                    </td>
                                </tr>
                             </table>
                               <tb />
                               <tb />

                             <table width="100%">   
                                <tr>
                                <td align="left">
                                        <asp:Label ID="Label18" runat="server" Font-Bold="True" Font-Names="隶书" ForeColor="Red"
                                            Text="图书介绍："></asp:Label>
                                    </td>
                                    &nbsp;
                                <td align="left">
                                        <asp:Label ID="Label19" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"introduce")%>'></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                 
                                   <td>
                                       <asp:Label ID="Label20" runat="server"  Font-Bold="True" Font-Names="隶书" ForeColor="Red" Text="购买数量" ></asp:Label>
                                       &nbsp;
                                        <asp:TextBox ID="TB_num" runat="server" Width="50px" ></asp:TextBox>
                                    </td>

                                    <td align="left" colspan="4">
                                        <asp:LinkButton ID="LinkButton1" runat="server" CommandName="add"  CommandArgument='<%#DataBinder.Eval(Container.DataItem,"bookId") %>'
                                            Font-Bold="False" Font-Names="隶书">加入购物车</asp:LinkButton>
     
                                    </td>
                                </tr>
                                
                            </table>
                        </ItemTemplate>
                    </asp:DataList>
                </td>
            </tr>
        </table>
    </div>
    <p>
        <asp:Button ID="Button1" runat="server" Text="进入购物车" BorderWidth="1px" 
            Font-Names="Arial Black" Height="31px" onclick="Button1_Click" />
    </p>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolderPanel" Runat="Server">
    <div style="width: 207px">
        <wen:show ID="MyHello" runat="server"></wen:show>
    </div>
    <p>
        &nbsp;
    </p>
    <div style="width: 207px">
        <inqu:inquiry ID="MyInquiry" runat="server"></inqu:inquiry>
    </div>
</asp:Content>

